package xin.marcher.module.price.converter;

import org.mapstruct.Mapper;
import xin.marcher.module.price.domain.dto.AuditContentConfigDTO;
import xin.marcher.module.price.domain.entity.AuditContentConfigDO;
import xin.marcher.module.price.domain.request.AuditContentConfigRequest;

import java.util.List;

/**
 * 审核内容配置相关对象克隆
 */
@Mapper(componentModel = "spring")
public interface AuditContentConfigConverter {
    /**
     * 审核内容配置request -> DO
     *
     * @param request
     * @return
     */
    AuditContentConfigDO requestToEntity(AuditContentConfigRequest request);

    /**
     * 审核内容配置 list entity -> DTO
     *
     * @param stageList
     * @return
     */
    List<AuditContentConfigDTO> listEntityToDTO(List<AuditContentConfigDO> stageList);
}
